package com.zjw.springconsumer;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.Map;

@RestController
@RequestMapping("/h")
public class HelloController {

    @Resource
    private HelloService helloService;

    @GetMapping(path = "/a",produces = {"application/json;charset=UTF-8"})
    public Map<String,String> hello(){
        return helloService.hello();
    }
}
